Page({
  data: {

  },
  onLoad(options) {
    wx.cloud.database().collection('liverpool').get().then(res => {
      console.log(res);
      this.setData({
        list: res.data
      });
    });
  },
  goDetail(e) {
    console.log(e.currentTarget.dataset.id);
    wx.navigateTo({
      url: '/pages/detail/detail?id=' + e.currentTarget.dataset.id,
    });
  },
  
  
  onReady() {},
  onShow() {},
  onHide() {},
  onUnload() {},
  onPullDownRefresh() {},
  onReachBottom() {},
  onShareAppMessage() {}
});